﻿using Microsoft.EntityFrameworkCore;
using ZH.GPT.Infrastructures.Enum;
using System;
using System.Collections.Generic;
using System.Text;

namespace ZH.GPT.Infrastructures.Extension
{
    /// <summary>
    /// DBContext工厂
    /// </summary>
    public interface IDbContextFactory
    {
        /// <summary>
        /// 更换连接
        /// </summary>
        /// <param name="dbOption">选择主从库</param>
        /// <returns></returns>
        public DbContext GetDbContext(DBOption dbOption);
    }
}
